import {defineStore} from "pinia";
import {ref} from "vue";

export const useIndexListHeightStore = defineStore('indexHeight', () => {
        // false-图文 true-纯图片
        const heightDifference = ref(0)
        const listHeight_1 = ref(0)
        const listHeight_2 = ref(0)
        const getHeightDifference = () => {
            return listHeight_1.value - listHeight_2.value
        }
        return {
            getHeightDifference,
            listHeight_1,
            listHeight_2
        }
    }
)